package p.ithorns.framework.core.constants;

/**
 * CommonConstant
 *
 * @author ithorns
 * @version 1.0
 * @date 2020/9/14 17:22
 */
public interface CommonConstant {

    static final String SERVICE_NAME = "market";

    static final String CURRENT_VERSION = "v0.2";

    /**
     * FeignClient 用placeholder可以方便的进行内部调用 配置key为ws.base.服务名
     */
    static final String PLACE_HOLD_SERVICE_NAME = "${ws.base:" + SERVICE_NAME + "}";

    /**
     * 用户字段
     */
    static final String PRINCIPAL = "principal";

    /**
     * 权限字段
     */
    static final String AUTHORITIES = "authorities";

    /**
     * 菜单
     */
    static final int MENU = 1;

    /**
     * 权限
     */
    static final int PERMISSION = 2;

    /**
     * 超级管理员用户名
     */
    static final String ADMIN_USER_NAME = "super_admin";

    /**
     * 默认密码
     */
    static final String DEF_USER_PASSWORD = "123456";


    static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 日志链路追踪id信息头
     */
    static final String TRACE_ID_HEADER = "x-traceId-header";
    /**
     * 日志链路追踪id日志标志
     */
    static final String LOG_TRACE_ID = "traceId";
}
